<style type="text/css">
    .tablelist td{line-height:26px;}
    .tablelist tbody tr.odd {background:#E3F0FA}
    .giveorder{background:#26B99A;color:white;padding:3px 4px;border-radius:3px;}
    .giveorder:hover{color:white;background:#169F85}
.form-control{padding:0;}
.col-md-55, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{padding:0;}
.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9{padding-left:2px;padding-right:0;}
.form-inline .form-control{border-radius:3px;padding-left:2px;}
</style>
<form class="form-inline" method="get">


  <div class="form-group col-xs-2" style='max-width:185px;'>
      <div class="col-xs-12">
          <span></span><input class="form-control" name="datestr" value="{$datestr|default=''}" placeholder="格式：2020-04-15" />
      </div>
  </div>

    <div class="form-group col-xs-2">
        <div class="col-xs-12">
            <select class="form-control" name="good_id" id="good_id">
                <option value=''   {if $good_id== 0} selected {/if} >全部</option>
                {foreach $good_list as $g}
                <option value='{$g.id}'   {if $good_id== $g['id']}selected{/if} >{$g.title}（{:transdate3($g['time_start'])}--{:transdate3($g['time_end'])})）</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group col-xs-3">
        <div class="col-xs-12">
            <button type="submit" class="btn btn-success">
                确认搜索
            </button>
        </div>
    </div>
</form>
<hr>
<table class="table table-striped">
    <thead>
    <tr>
        <td>系统编号</td>
        <th>抢购日期</th>
        <th>抢购用户的用户名</th>
        <th>产品名称</th>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.id}</td>
        <td>{$item.datestr}</td>
        <td>{$item.uid|get_uname}</td>
        <td>{$item.proid|get_goodsname}</td>
    </tr>
    {/volist}
    </tbody>
</table>

<div class="row">
    <div class="col-xs-12" style="text-align: right;">
        {$list->render()}
    </div>
</div>
<script src="__PUBLIC__/vendors/select2/js/select2.min.js"></script>
